<?
import ("stock_price_PriceView");
import ("stock_price_PriceVo");
import ("stock_price_LivePriceView");
import ("stock_price_LivePriceVo");
stock_price_PriceConfig::$config = new stock_price_PriceConfig();
class stock_price_PriceConfig extends jsml_Config {
	public static $config;

	public $PriceView = 'PriceView';
	public $LivePriceView = 'LivePriceView';
	protected function configBean($key) {
		$bean = parent::configBean($key);
		if ($this->PriceView == $key) {
			$bean = $this->singleton($key, new stock_price_PriceView())->construct(null);
		} else if ($this->LivePriceView == $key) {
			$bean = $this->singleton($key, new stock_price_LivePriceView())->construct(null);
		}
		return $bean;
	}

	protected function configCss($key) {
		$css = parent::configCss($key);
		if ($this->PriceView == $key) {
			$_->extend($css, array(
				"backgroundColor" => "white",
				"height" => 500,
				"width" => 800,
				"top" => 50,
				"left" => 100
			));
		} else if ($this->LivePriceView == $key) {
			$_->extend($css, array(
				"backgroundColor" => "white",
				"height" => 600,
				"width" => 1300
			));
		}
		return $css;
	}

	protected function configText($key) {
		$text = parent::configText($key);
		if ("" == $key) {
			$text = "";
		}
		return $text;
	}
}